/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.openjawtech.xscraper.scraper.filter;

import java.io.File;
import java.io.FileFilter;
/**
 *
 * @Created on 26-Apr-2009, 08:39:07
 * @author Wenbo.Sun
 */
public class XmlFileFilter implements FileFilter{

    @Override
    public boolean accept(File file) {
        if(file.isDirectory())
            return false;
        String name = file.getName();
        if( name.endsWith(".xml"))
            return true;
        return false;
    }
}
